const log4js = require('log4js')

log4js.configure({
  appenders: {
    service: {
      type: 'file',
      filename: 'run.log'
    },
    out: {
      type: 'stdout'
    }
  },
  categories: {
    default: {
      appenders: ['service', 'out'],
      level: 'debug'
    }
  }
})

module.exports = log4js.getLogger('service')
